import tip from '@/utils/tip';
import React from 'react';
import styles from './index.less';
import { history } from 'umi';

export default class IndexPage extends React.Component {
  goExample() {
    history.push({
      pathname: '/example',
    });
  }

  render() {
    return (
      <div className={styles.indexPage}>
        <h1 className={styles.title}>md-fe</h1>
        <div className={styles.wrap}>
          <h4>md-fe 前端脚手架工程</h4>
          <ul>
            <li>查看 README.md 了解更多细节</li>
            <li onClick={this.goExample.bind(this)}>
              <a>组件案例</a>
            </li>
          </ul>
        </div>
      </div>
    );
  }
}
